package com.smart.car.record.client;

import com.smart.car.common.res.bean.ResponseResult;
import com.smart.car.record.client.fallback.MessageClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 远程调用消息服务
 * FeignClient是根据对应服务的application-anme设置的。
 */
@FeignClient(name = "smartcar-message", fallback = MessageClientFallback.class)
public interface MessageClient {

	@PostMapping("/message/sendNotice")
	ResponseResult<Integer> sendNotice(@RequestParam("json") String json);
}
